<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	  xmlns:ui="http://java.sun.com/jsf/facelets"
	  xmlns:h="http://java.sun.com/jsf/html"
	  xmlns:f="http://java.sun.com/jsf/core">
	<head><title>IGNORED</title></head>
    <body>
		<ui:composition template="templates/layout.xhtml">
			<ui:define name="windowTitle">Daily Market | Sign Up</ui:define>
			<ui:define name="content">
				<div id="content" class="graphic_bg">
					<h:form>
						<div class="form-row header">#{authenticationBean.signupClientTypeString} Sign Up</div>
						<div class="form-row">
							<h:outputLabel for="signupEmail" styleClass="form-row">Email:</h:outputLabel>
							<h:inputText id="signupEmail" value="#{authenticationBean.signupEmail}" required="true" requiredMessage="#{msgs.email_invalid_detail}" validator="#{authenticationBean.validateEmail}" />
						</div>
						<h:message for="signupEmail" errorClass="form-message error" infoClass="form-message" fatalClass="form-message error" styleClass="form-message" warnClass="form-message warn" />
						<div class="form-row">
							<h:outputLabel for="signupPassword" styleClass="form-row">Password:</h:outputLabel>
							<h:inputSecret id="signupPassword" value="#{authenticationBean.signupPassword}" validatorMessage="#{msgs.password_invalid}">
								<f:validateLength minimum="6" maximum="20" />
							</h:inputSecret>
						</div>
						<h:message for="signupPassword" errorClass="form-message error" infoClass="form-message" fatalClass="form-message error" styleClass="form-message" warnClass="form-message warn" />
						<div class="form-row">
							<h:outputLabel for="signupConfirmPassword" styleClass="form-row">Confirm Password:</h:outputLabel>
							<h:inputSecret id="signupConfirmPassword" value="#{authenticationBean.signupConfirmPassword}" binding="#{authenticationBean.signupConfirmPasswordComponent}" />
						</div>
						<h:message for="signupConfirmPassword" errorClass="form-message error" infoClass="form-message" fatalClass="form-message error" styleClass="form-message" warnClass="form-message warn" />
						<div class="form-row">
							<h:outputLabel for="signupFirstName" styleClass="form-row">First Name:</h:outputLabel>
							<h:inputText id="signupFirstName" value="#{authenticationBean.signupFirstName}" />
						</div>
						<div class="form-row">
							<h:outputLabel for="signupLastName" styleClass="form-row">Last Name:</h:outputLabel>
							<h:inputText id="signupLastName" value="#{authenticationBean.signupLastName}" />
						</div>
						<div class="form-row">
							<h:outputLabel for="signupCompanyName" styleClass="form-row">Business Name:</h:outputLabel>
							<h:inputText id="signupCompanyName" value="#{authenticationBean.signupCompanyName}" />
						</div>
						<div class="form-row submit">
							<h:commandLink styleClass="image-button no-height" action="#{authenticationBean.doFinishSignup}">Sign Up!</h:commandLink>
						</div>
						<h:messages globalOnly="true" styleClass="form-messages" fatalClass="form-messages error" errorClass="form-messages error" warnClass="form-messages warn" infoClass="form-messages" />
					</h:form>
				</div>
			</ui:define>
		</ui:composition>
	</body>
</html>